<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:nxl="http://nuxeo.org/nxforms/layout"
  xmlns:nxd="http://nuxeo.org/nxweb/document"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxp="http://nuxeo.org/nxweb/pdf">

<c:if test="false">
  displays a content view export links using PDF JSF library.

  needed parameters:
  - contentView
</c:if>

<nxp:paragraph spacingBefore="10" alignment="center">
  <nxp:html>
    <nxd:restDocumentLink document="#{currentDocument}"
      view="rss" addTabInfo="false"
      newConversation="true" target="_blank">
      <f:param name="contentViewName" value="#{contentView.name}" />
      <f:param name="currentPage" value="0" />
      <h:outputText value=" #{messages['label.contentview.export.rss']}"/>
    </nxd:restDocumentLink>
  </nxp:html>
    
  <nxp:html>
    <nxd:restDocumentLink document="#{currentDocument}"
      view="atom" addTabInfo="false"
      newConversation="true" target="_blank">
      <f:param name="contentViewName" value="#{contentView.name}" />
      <f:param name="currentPage" value="0" />
      <h:outputText value=" #{messages['label.contentview.export.atom']}" />    
    </nxd:restDocumentLink>
  </nxp:html>
    
  <c:if test="#{contentView.currentResultLayout.showCSVExport}">
    <nxp:html>
      <nxd:restDocumentLink document="#{currentDocument}"
        view="csv" addTabInfo="false"
        newConversation="true" target="_blank">
        <f:param name="contentViewName" value="#{contentView.name}" />
        <f:param name="currentPage" value="0" />
        <f:param name="pageSize" value="0" />
        <h:outputText value=" #{messages['label.contentview.export.csv']}"/>
      </nxd:restDocumentLink>
    </nxp:html>
  </c:if>
    
  <c:if test="#{contentView.currentResultLayout.showPDFExport}">
    <nxp:html>
      <nxd:restDocumentLink document="#{currentDocument}"
        view="content_view_pdf" addTabInfo="false"
        newConversation="true" target="_blank">
        <f:param name="contentViewName" value="#{contentView.name}" />
        <f:param name="currentPage" value="0" />
        <f:param name="pageSize" value="0" />
        <h:outputText value=" #{messages['label.contentview.export.pdf']}"/>
      </nxd:restDocumentLink>
    </nxp:html>
  </c:if>
</nxp:paragraph>

</f:subview>